package com.cqjtu.store.cart.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author cai
 * @create 2024-03-02 23:35
 * 对购物车查询进行封装
 */
@Data
@ApiModel(value = "购物车查询信息",description = "对购物车查询的信息进行封装")
public class CartDTO {
    @NotNull(message = "查询订单的用户Id不能为空")
    @ApiModelProperty(value = "用户ID",name = "userId",example = "1",required = true)
    private Integer userId;

    @ApiModelProperty(value = "商品标题",name = "title")
    private String title;
}
